package user;

import Book.Booklist;
import ioperation.*;

import java.util.Scanner;

/**
 * Created with Interllij IDEA.
 * Descriptiption:
 * User: 王澄慧
 * Date: 2022-04-16
 * Time: 20:05
 */
public class NamolUser extends User {
    public NamolUser(String name) {
        super(name);
        this.iPerations = new IPeration[] {
                new Exitiperation(),
                new Findiperation(),
                new Browerediperation(),
                new Returniperation(),
        };
    }
    @Override
    public int mun() {
        System.out.println("hello!" + this.name + "欢迎来到图书小练习！");
        System.out.println("1.查找书籍");
        System.out.println("2.借阅书籍");
        System.out.println("3.归还书籍");
        System.out.println("0.退出系统");
        System.out.println("请输入你的操作：");
        Scanner scanner = new Scanner(System.in);
        int choice = scanner.nextInt();
        return choice;
    }
}
